std::basic_ios::operator!

From Cppreference

Jump to: navigation, search
bool operator!() const;

Returns true if an error has occurred on the associated stream. Specifically, returns true if badbit or failbit is set in ​rdstate().

Contents

Parameters

(none)

Return value

true if an error has occurred, false otherwise.

Example

See also

good
checks if no error has occurred i.e. I/O operations are available
(public member function)
bad
checks if a non-recoverable error has occurred
(public member function)
fail
checks if a recoverable error has occurred
(public member function)
eof
checks if end-of-file has been reached
(public member function)
operator bool
checks if no error has occurred (synonym of good())
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages